-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create: allow specifying author
and difficulty
#864
Conversation
author
and difficulty
@@ -75,6 +75,8 @@ Options for create: | |||
--concept-exercise <slug> The slug of the concept exercise | |||
-e, --exercise <slug> Only operate on this exercise | |||
-o, --offline Do not update the cached 'problem-specifications' data | |||
-a, --author The author of the exercise, approach or article |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is deliberately singular, as 99.99% of the time there is only one author.
if conf.action.difficulty.isSome: | ||
let msg = "The difficulty argument is not supported for approaches" | ||
stderr.writeLine msg | ||
quit QuitFailure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be a failure, or is a warning sufficient?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We tend to error for arguments that are not supported.
Support specifying the author and/or difficulty when creating exercises.
CC @glennj